<div id="search">        
    <form action="?control=search" method="POST">
        <div>Search</div>
        <div>Name:</div>
        <div><input type="text" name="name"></div>
        <div>Age:</div>
        <div><input type="text" name="age"></div>
        <div>Sex:</div>
        <div><input type="radio" name="sex" value="f">female</div>
        <div><input type="radio" name="sex" value="m">male</div>
        <div><input type="submit" value="Search"></div>
        <?php if(isset($_SESSION['authUserId'])){
        echo "<div><a href=\"#\" onclick=\"document.location='/?control=user&".$_SESSION['authUserId']."'\">My profile</a></div>
              <div><a href=\"#\" onclick=\"document.location='/?control=logout'\">Logout</a></div>
        ";
        
        }?>
        
    </form>
</div>
